<#include "/common/pagerForm.html">
<form rel="pagerForm" method="post" action="${rc.getContextPath()}/manage/role/flowNodeRoleLookUp" onsubmit="return dwzSearch(this, 'dialog');">
<div class="pageHeader">
    <div class="searchBar">
        <ul class="searchContent">
            <li><label id="roleCode"><@label key="roleCode.C,colon">角色编码：</@label></label> <input type="text" name="roleCode" value="${condition.roleCode!''}" /></li>
            <li>
                <label><@label key="lockFlag.C,colon">锁定标记：</@label></label> 
                <select name="lockFlag">
                        <option value=""><@label key="all.C">所有</@label></option>
                        <option value="0"<#if condition.lockFlag?? && condition.lockFlag == 0> selected="selected"</#if>><@label key="no.C">否</@label></option>
                        <option value="1"<#if condition.lockFlag?? && condition.lockFlag == 1> selected="selected"</#if>><@label key="yes.C">是</@label></option>
                </select>
            </li>
        </ul>
        <ul class="searchContent">
        <li><label id="roleText"><@label key="roleText.C,colon">角色描述：</@label></label> <input type="text" name="roleText" value="${condition.roleText!''}" /></li>
            
            <li>
            <label><@label key="systemFlag.C,colon">系统内置：</@label></label> <select name="systemFlag">
                    <option value=""><@label key="all.C">所有</@label></option>
                    <option value="0"<#if condition.systemFlag?? && condition.systemFlag == 0> selected="selected"</#if>><@label key="no.C">否</@label></option>
                    <option value="1"<#if condition.systemFlag?? && condition.systemFlag == 1> selected="selected"</#if>><@label key="yes.C">是</@label></option>
            </select>
            </li>
            <li class="query">
                <div class="buttonActive">
                    <div class="buttonContent">
                        <button type="submit"><@label key="query.B">查询</@label></button>
                    </div>
                </div>
            </li>

        </ul>
    </div>
</form>

    <table class="table border" width="100%" layoutH="162">
        <thead>
            <tr>
                <th width="100" orderField="roleCode"<#if (page.orderField?? && page.orderField == 'roleCode')>class="${page.orderDirection!''}"</#if>><@label key="roleCode.C">角色编码</@label></th>
                <th width="100" orderField="roleText"<#if (page.orderField?? && page.orderField == 'roleText')>class="${page.orderDirection!''}"</#if>><@label key="roleText.C">角色描述</@label></th>
                <th width="50" orderField="lockFlag"<#if (page.orderField?? && page.orderField == 'lockFlag')>class="${page.orderDirection!''}"</#if>><@label key="lockFlag.C">锁定标记</@label></th>
                <th width="50" orderField="systemFlag"<#if (page.orderField?? && page.orderField == 'systemFlag')>class="${page.orderDirection!''}"</#if>><@label key="systemFlag.C">系统内置</@label></th>
                <th width="80"><@label key="selected_first.C">请选择</@label></th>
            </tr>
        </thead>
        <tbody>
            <#if page??><#if (page.data?size>0)> <#list page.data as role>
            <tr target="role_code" rel="${role.roleCode!''}">
                <td>${role.roleCode!''}</td>
                <td>${role.roleText!''}</td>
                <td><#if role.lockFlag == 0><@label key="no.C">否</@label><#else><@label key="yes.C">是</@label></#if></td>
                <td><#if role.systemFlag == 0><@label key="no.C">否</@label><#else><@label key="yes.C">是</@label></#if></td>
                <td><a class="btnSelect" href="javascript:$.bringBack({roleCode:'${role.roleCode!''}',roleText:'${role.roleText!''}' })" >选择</a></td>
            </tr>
            </#list> <#else>
            <tr target="role_id">
                    <td colspan="6" class="noData">======<@label key="noListData.C">列表无数据</@label>=====</td>
            </tr>
            </#if> <#else>
            <tr target="role_id">
                        <td colspan="6" class="noData">======<@label key="noListData.C">列表无数据</@label>=====</td>
            </tr>
            </#if>
        </tbody>
    </table>
    <#include "/common/dialogPanelBar.html">